.course-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../assets/imgs/courses/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 2rem;
    margin-top: 80px;
}

.course-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.course-hero p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem auto;
    flex-wrap: wrap;
    padding: 0 2rem;
    max-width: 1200px;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #2ecc71;
    background: none;
    color: #2ecc71;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #2ecc71;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(46,204,113,0.3);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.course-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.course-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s;
}

.course-card:hover img {
    transform: scale(1.05);
}

.course-info {
    padding: 1.8rem;
}

.course-info h3 {
    color: #2ecc71;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.course-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

.course-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    color: #888;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.book-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: #2ecc71;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.book-btn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46,204,113,0.2);
}

@media (max-width: 768px) {
    .course-hero h1 {
        font-size: 2.2rem;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }
    
    .category-filters {
        padding: 0 1rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

.course-schedule {
    padding: 4rem 5%;
    background-color: #f9f9f9;
}

.course-schedule h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.schedule-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.schedule-header {
    display: grid;
    grid-template-columns: 120px repeat(7, 1fr);
    background-color: #2ecc71;
    color: #fff;
    font-weight: bold;
}

.schedule-header > div {
    padding: 1rem;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.schedule-body {
    border: 1px solid #eee;
}

.schedule-row {
    display: grid;
    grid-template-columns: 120px repeat(7, 1fr);
    border-bottom: 1px solid #eee;
}

.schedule-row:last-child {
    border-bottom: none;
}

.time-column {
    padding: 1rem;
    background-color: #f8f9fa;
    font-weight: bold;
    text-align: center;
    border-right: 1px solid #eee;
}

.schedule-cell {
    padding: 1rem;
    text-align: center;
    border-right: 1px solid #eee;
    transition: background-color 0.3s;
}

.schedule-cell:hover {
    background-color: #f8f9fa;
}

@media (max-width: 768px) {
    .schedule-container {
        margin: 0 -5%;
        border-radius: 0;
    }

    .schedule-header,
    .schedule-row {
        grid-template-columns: 100px repeat(7, 150px);
    }

    .schedule-header > div,
    .schedule-cell {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .course-hero h1 {
        font-size: 2rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .course-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .course-details {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
}